package com.example.shop_front_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@TableName("shop_products")
public class Product {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @JsonProperty("product_name")
    private String productName;

    @JsonProperty("main_image")
    private String mainImage;

    private Double price;

    @JsonProperty("original_price")
    private Double originalPrice;

    private Integer stock;

    @JsonProperty("lock_stock")
    private Integer lockStock;

    private Integer sales;

    private Integer status;

    @JsonProperty("created_time")
    private Integer createdTime;

    @JsonProperty("updated_time")
    private Integer updatedTime;
}